package com.hunan.api.catv.entity.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 大小屏用户账号关联 
 * </p>
 *
 * @author wangchao
 * @since 2021-06-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("member_account_related")
public class MemberAccountRelated extends Model<MemberAccountRelated> {

    private static final long serialVersionUID=1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 小屏账号
     */
    private Integer memberId;

    /**
     * 大屏账号
     */
    private String accountId;

    /**
     * 状态 0:禁用 1:正常
     */
    private Integer status;

    /**
     * 创建人
     */
    private Integer createBy;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新人
     */
    private Integer updateBy;

    /**
     * 更新时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    /**
     * 1:白金岛活动绑定  2:大小屏账号绑定
     */
    private Integer type;

    /**
     * 大屏mac地址
     */
    private String mac;

    /**
     * 大屏ca卡号
     */
    private String ca;

    private String stbid;

    /**
     * 盒子设备类型  0：DVB 1：IP  2：宽带电视 3：宽带电视商户版本
     */
    private Integer terminalType;


    public static final String ID = "id";

    public static final String MEMBER_ID = "member_id";

    public static final String ACCOUNT_ID = "account_id";

    public static final String STATUS = "status";

    public static final String CREATE_BY = "create_by";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_BY = "update_by";

    public static final String UPDATE_TIME = "update_time";

    public static final String TYPE = "type";

    public static final String MAC = "mac";

    public static final String CA = "ca";

    public static final String STBID = "stbid";

    public static final String TERMINAL_TYPE = "terminal_type";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
